using UnityEngine;

public class ShitObj : IntersectionObject
{
    SpriteRenderer m_SpriteRenderer;
    private void Awake()
    {
        m_SpriteRenderer = GetComponent<SpriteRenderer>();
        m_SupportIntersection = false;
    }
    void Start()
    {

    }

    // Update is called once per frame
    protected override void Update()
    {
        base.Update();
        if (m_LifeTime < 0)
        {
            IntersectionObjManager.Instance.CycleObj(gameObject);
        }

        m_SpriteRenderer.color = Color.Lerp(Color.white, Color.gray, 1f - m_LifeTime / m_LifeTimeMax);
    }
}
